// import * as types from './videoDetails.mutationsType'
import * as methods from 'api/videoDetails'

const videoDetails = {
  state: {},
  mutations: {},
  actions: {
    _getFilmDetail({commit}, params) {
      return new Promise((resolve, reject) => {
        methods.getFilmDetail(params)
          .then((res) => {
            resolve(res)
          })
          .catch((err) => {
            reject(err)
          })
      })
    },
    _getFilmEvaluate({commit}, params) {
      return new Promise((resolve, reject) => {
        methods.getFilmEvaluate(params)
          .then((res) => {
            resolve(res)
          })
          .catch((err) => {
            reject(err)
          })
      })
    }
  }
}
export default videoDetails
